import request from '@/utils/request'
import type { listFormData } from './type'

//定义枚举类统一管理接口
enum API {
    SOURCE_URL = '/client/user/get_source',
    BUMEN_URL = '/client/department/get_list'
}

//获取公共资源
export const getPublic = () => request.post<any, any>(API.SOURCE_URL)

//获取当前区的所有部门
export const getDepartmentList = () => request.post<any, any>(API.BUMEN_URL)

//上传取保候审材料附件
export const getUploads = (data: any) => request.post<any, any>('/client/attachment/uploads',data)

//获取取保候审材料附件
export const getAttachment = (data: any) => request.post<any, any>('/client/attachment/get_attachment',data)

//绑定取保候审附件
export const setBindAtt = (data: any) => request.post<any, any>('/client/attachment/bind_att',data)

//获取取保候审已绑定附件
export const getBindAtt = (data: any) => request.post<any, any>('/client/attachment/get_bind_att',data)

//设置附件文件别名
export const saveFileAlias = (data: any) => request.post<any, any>('/client/attachment/save_file_alias',data)